<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {"name" : "张三",
                    "age" : 12,
                    "fun" : (a, b) => {
                        console.log(a + b)
                        console.log(this)
                    }}
        function fun2(a, b) {
            let c = (a, b) => {
                a + b;
            }
            console.log(this)
            console.log(a)
            console.log(b)
            console.log(c())
        }
        obj["fun"](1, 2)
        // fun2(1, 2)
        // fun2.call(obj, 1, 2)
        // fun2.apply(obj, [1, 2])
        // fun2.bind(obj)(1, 2)
    </script>
</body>
</html>